﻿<Page x:Class="JasRibbonApplicatie.Views.OntleningenView"
	  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	  mc:Ignorable="d" 
	  d:DesignHeight="498" d:DesignWidth="1280"
	Title="OntleningUitlenen" IsEnabled="True">

	<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="410" />
            <ColumnDefinition Width="648" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="49" />
            <RowDefinition Height="449*" />
        </Grid.RowDefinitions>
        
		

        <Grid Grid.Column="1" HorizontalAlignment="Stretch" Margin="5,5,213,0" Name="scanCanvas" VerticalAlignment="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <TextBox Grid.Column="1" Height="34" Name="scanTextBox" Width="167" IsEnabled="False" HorizontalAlignment="Center" TextChanged="scanTextBox_TextChanged" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="20" FontFamily="Estrangelo Edessa" Margin="5" />
            <Label Grid.Column="0" Content="Scannen (of intypen):" Height="27" Name="uitlegScannenLabel" Width="121" Visibility="Visible" IsEnabled="False" HorizontalAlignment="Left" VerticalContentAlignment="Center" Margin="5" />
		</Grid>


        <Canvas Grid.Row="1" Grid.Column="1" Height="384" HorizontalAlignment="Left" Margin="5,5,0,0" Name="uitscannenMaterialenCanvas" VerticalAlignment="Top" Width="634">
			<!--<DataGrid AutoGenerateColumns="False" Canvas.Left="8" Canvas.Top="44" Height="200" Name="verhuurMaterialenDataGrid" Width="406"-->
					  <!--DataContext="{Binding}" GridLinesVisibility="All" AlternatingRowBackground="#870059D9" BorderBrush="#00000000" Background="White" />-->
			<Label Canvas.Left="8" Canvas.Top="6" Content="Laatst ingescand:" Height="28" Name="laatstGescandUitlegLabel" />
			<TextBox Canvas.Left="118" Canvas.Top="8" Height="23" Name="laatstGescandTextBox" Width="120" Focusable="False" />
			<GroupBox Canvas.Left="9" Canvas.Top="37" Header="Producten" Name="materialenGroupBox" Width="300" Height="341">
				<Grid>
					<DataGrid AlternatingRowBackground="#2A0059D9" AutoGenerateColumns="false" Background="White" BorderBrush="#00000000" CanUserResizeRows="True" DataContext="{Binding}" GridLinesVisibility="None" HeadersVisibility="Column" Name="materialenDataGrid" SelectionMode="Single" SelectionUnit="FullRow" UseLayoutRounding="False" CanUserAddRows="False">
						<DataGrid.Columns>
							<DataGridTextColumn Binding="{Binding Producttype.naam}" Header="Naam" IsReadOnly="True" Width="150"/>
							<DataGridTextColumn Binding="{Binding AantalGoedgekeurd}" IsReadOnly="True">
								<DataGridTextColumn.Header>
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/vinkje.png" ToolTip="Aantal goedgekeurd" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
							<DataGridTextColumn Binding="{Binding AantalOntleend}" IsReadOnly="False">
								<DataGridTextColumn.Header>
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/exchange.png" ToolTip="Aantal reeds ontleend" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
							<DataGridTextColumn Binding="{Binding AantalBinnengebracht}" IsReadOnly="True">
								<DataGridTextColumn.Header>                                 
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/exchangeRotated.png" ToolTip="Aantal reeds binnengebracht" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
						</DataGrid.Columns>
					</DataGrid>
				</Grid>
			</GroupBox>
			<GroupBox Header="Toebehoren" Name="toebehorenGroupBox" Width="300" Canvas.Left="320" Canvas.Top="37" Height="341">
				<Grid>
					<DataGrid AutoGenerateColumns="false" Name="toebehorenDataGrid" DataContext="{Binding}" HeadersVisibility="Column" SelectionMode="Single" SelectionUnit="FullRow" GridLinesVisibility="None" AlternatingRowBackground="#2A0059D9" BorderBrush="#00000000" Background="White" CanUserResizeRows="True" UseLayoutRounding="False" CanUserAddRows="False">
						<DataGrid.Columns>
							<DataGridTextColumn Binding="{Binding Producttype.naam}" Header="Naam" IsReadOnly="True" Width="150" />
							<DataGridTextColumn Binding="{Binding AantalGoedgekeurd}" IsReadOnly="True">
								<DataGridTextColumn.Header>
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/vinkje.png" ToolTip="Aantal goedgekeurd" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
							<DataGridTextColumn Binding="{Binding AantalOntleend}" IsReadOnly="False">
								<DataGridTextColumn.Header>
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/exchange.png" ToolTip="Aantal reeds ontleend" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
							<DataGridTextColumn Binding="{Binding AantalBinnengebracht}" IsReadOnly="True">
								<DataGridTextColumn.Header>
									<Image Height="22" HorizontalAlignment="Center" Source="/JasRibbonApplicatie;component/Images/exchangeRotated.png" ToolTip="Aantal reeds binnengebracht" Width="22" />
								</DataGridTextColumn.Header>
							</DataGridTextColumn>
						</DataGrid.Columns>
					</DataGrid>
				</Grid>
			</GroupBox>
			<Image Canvas.Left="244" Canvas.Top="8" Height="23" Name="statusImage" Stretch="Fill" Width="24" Source="/JasRibbonApplicatie;component/Images/info.png" />
		</Canvas>
		<GroupBox Grid.RowSpan="2"
                  Grid.Column="1"
                  Header="Probleem"
                  Height="80"
                  Width="284"
                  HorizontalAlignment="Left"
                  Margin="451,5,0,0"
                  Name="probleemGroupbox"
                  VerticalAlignment="Top"
				  Visibility="Visible" Grid.ColumnSpan="2">
			<Grid>
				<Image Height="49" HorizontalAlignment="Left" Margin="6,6,0,0" Name="probleemImage" Stretch="Fill" VerticalAlignment="Top" Width="50"
					   Source="/JasRibbonApplicatie;component/Images/info.png"/>
				<TextBox Height="49" HorizontalAlignment="Left" Focusable="False" Margin="62,6,0,0" Name="probleemTextBox" VerticalAlignment="Top" Width="204" Foreground="#FFAA0000" TextWrapping="Wrap" />
			</Grid>
		</GroupBox>
        <Button Grid.Row="1" Height="29" HorizontalAlignment="Left" Margin="96,238,0,0" Name="button1" VerticalAlignment="Top" Width="104" />
    </Grid>
</Page>
